#ifndef IMAGEINFO_H
#define IMAGEINFO_H
#include <QString>
#include <QXmlStreamReader>
#include <QXmlStreamWriter>
#include <QJsonObject>

class ImageInfo
{
public:
    ImageInfo();

private:
    int         m_nImageHeight;
    int         m_nImageWidth;
    int         m_nImageChannel;

public:
    int         GetImageHeight(){return m_nImageHeight;}
    int         GetImageWidth(){return m_nImageWidth;}
    int         GetImageChannel(){return m_nImageChannel;}

public:
    bool writeXML(const QXmlStreamWriter &writer);
    bool ReadXML(QXmlStreamReader &reader);

    QJsonObject toJson();
    void    fromJson(QJsonObject obj);
};

#endif // IMAGEINFO_H
